<?php

session_start();
if($_COOKIE['token']){
    echo $_COOKIE['token'];
}else{
    do{

        $red = [];

        $d = mt_rand(1,16);
        do{
            $a = mt_rand(34,67);
            $c = intval($a%33);
            if(!in_array($c,$red)){
                array_push($red,$c);
            }
            if(count($red) == 6){
                break;
            }
        }while(1);
        sort($red);
        $l = mt_rand(1,100);
        if($l == 50 ){
            echo join(',',$red).'_'.$d;
            $tomorrow_time = strtotime(date('Ymd')+1);
            setcookie("token",  join(',',$red).'_'.$d, $tomorrow_time);
            echo "bingo";
            break;
        }
    }while(1);
}

echo 111222221;

echo  shell_exec("id -a");




//
//if(version_compare(PHP_VERSION,'5.4.0','<')) {
//	header("Content-type: text/html; charset=utf-8");
//	die('PHP版本必须>=5.3.0');
//}
//
//
//define('APP_DEBUG',true);
//
//define('RUNTIME_PATH','./Runtime/');
//define('APP_PATH','./Apps/');
//
//require './ThinkPHP/ThinkPHP.php';